package blocs;

import org.newdawn.slick.SlickException;
import org.newdawn.slick.Sound;

import constantes.Constantes;
import constantes.TypeBloc;

public class TNT extends Bloc {
	private Sound tnt;

	public TNT(int x, int y) throws SlickException {
		super(x, y, TypeBloc.EXPLOSIF, Constantes.ResistanceTNT,"../textures/tnt.jpg");
		tnt = new Sound("../sounds/tnt.ogg");
	}
	
	public void explosion(){
		System.err.println("Explosion !");
		tnt.play();
		detruire();
	}

}
